/*
 * Small test case illustrating 
 * useStyleSheet and setStyleClass
 */

#include <Wt/WApplication>
#include <Wt/WContainerWidget>

using namespace Wt;

class TreeViewDragDrop : public WApplication
{
public:
  TreeViewDragDrop(const WEnvironment &env)
    : WApplication(env)
  {
    WContainerWidget *w = root();
    w->setStyleClass("maindiv");
  }
};

WApplication *createApplication(const WEnvironment& env)
{
  WApplication *app = new TreeViewDragDrop(env);
  app->setTwoPhaseRenderingThreshold(0);
  app->useStyleSheet("styles.css");
  app->refresh();
  
  return app;
}

int main(int argc, char **argv)
{
  return WRun(argc, argv, &createApplication);
}

